package com.hello.practise;

public class ShapeRectangle extends Shape {
	
	double x,y;

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}
	
	public ShapeRectangle() {
		
	};
	
	public ShapeRectangle(double x,double y) {
		this.setX(x);
		this.setY(y);
	}

	@Override
	public double area() {
		return x*y;
	}

}
